[#include "../common/taglibs.html"/]
<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
	<h4 class="modal-title">[@spring.message code="banktransactiondetail."+uses+".create.title"/]</h4>
</div>

<div class="modal-control">
	[@form.form commandName="createDTO" method="POST" class="form-horizontal form"]
	<input type="hidden" name="format" value="json">
	<div class="modal-body">
		<div class="form-body">
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="banktransactiondetail."+uses+".create.form.label.sourceBankName"/]</label>
						<div class="col-md-9">
							[@spring.bind path="sourceBankName"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="banktransactiondetail.create.form.label.destinationBankName"/]</label>
						<div class="col-md-9">
							[@spring.bind path="destinationBankName"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="banktransactiondetail."+uses+".create.form.label.sourceAccountName"/]</label>
						<div class="col-md-9">
							[@spring.bind path="sourceAccountName"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="banktransactiondetail.create.form.label.destinationAccountName"/]</label>
						<div class="col-md-9">
							[@spring.bind path="destinationAccountName"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="banktransactiondetail."+uses+".create.form.label.sourceAccountNo"/]</label>
						<div class="col-md-9">
							[@spring.bind path="sourceAccountNo"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="banktransactiondetail.create.form.label.destinationAccountNo"/]</label>
						<div class="col-md-9">
							[@spring.bind path="destinationAccountNo"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="banktransactiondetail.create.form.label.transactionDirection"/]</label>
						<div class="col-md-9">
							<div class="btn-group" data-toggle="buttons">
								[@spring.bind path="transactionDirection"]
								[#list enums["net.lanelife.casino.caipiao.entity.BankTransactionDetail$TransactionDirection"]?values as item]
								<label class="btn btn-default[#if item==status.value] active[/#if]">
									<input name="${status.expression}" value="${item.name()}" [#if item==status.value]checked="checked"[/#if] type="radio" class="toggle">
									[@spring.message code="net.lanelife.casino.caipiao.entity.BankTransactionDetail.TransactionDirection."+item.name()/]
								</label>
								[/#list]
								[/@spring.bind]
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="banktransactiondetail.create.form.label.transactionAmount"/]</label>
						<div class="col-md-9">
							[@spring.bind path="transactionAmount"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="banktransactiondetail.create.form.label.transactionFee"/]</label>
						<div class="col-md-9">
							[@spring.bind path="transactionFee"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="banktransactiondetail.create.form.label.currentBalance"/]</label>
						<div class="col-md-9">
							[@spring.bind path="currentBalance"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="banktransactiondetail.create.form.label.userName"/]</label>
						<div class="col-md-9">
							[@spring.bind path="userName"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="banktransactiondetail.create.form.label.transactionTime"/]</label>
						<div class="col-md-9">
							[@spring.bind path="transactionTime"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							[/@spring.bind]
						</div>
					</div>
				</div>
			</div>
			
		</div>
	</div>
	<div class="modal-footer">
		<button type="button" class="btn default" data-dismiss="modal">[@spring.message code="form.button.close"/]</button>
		<button type="submit" class="btn blue">[@spring.message code="form.button.submit"/]</button>
	</div>
	[/@form.form]
</div>

<script type="text/javascript">

$('#createDTO').validate({
	rules: {
  	},
	messages:{
	}
});

</script>